// 公共参数  常量
@import "./variables.less";

// 公共的mixin函数
@import "./mixins.less";

html {
  font-family: @font-family!important;
  box-sizing: border-box;
  color: #333;
  line-height: 1.2;
  user-select: none;
  -webkit-font-smoothing: antialiased;
  touch-action: manipulation;
  text-size-adjust: none;
}

*,::after,::before {
  box-sizing: inherit;
  -webkit-tap-highlight-color: transparent
}

body,button,dd,dl,ol,ul {
  margin: 0;
  padding: 0
}

ol,ul {
  list-style: none
}

a {
  outline: 0;
  color: #333;
  text-decoration: none
}

i {
  font-style: normal;
}

a,img {
  -webkit-touch-callout: none
}

button,input,select,textarea {
  outline: 0;
  border: none;
  font-size: inherit;
  font-family: inherit
}

h1,h2,h3,h4,h5,h6,p {
  margin: 0;
  font-weight: 400
}

img {
  max-width: 100%
}

textarea {
  resize: none
}

select {
  background-color: transparent;
  appearance: none
}

input[type=button],input[type=reset],input[type=submit] {
  appearance: button
}

input:-webkit-autofill {
  box-shadow: 0 0 0 100px #fff inset
}

.hide {display: none!important;}

.hide_it { display: none !important;}

/* 拉伸页面到底部 */
/* 同时需设置html, body {height: 100%;} */
.main_content {min-height: 85%;}

.img-box{
  >.img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
  }
  &:before{
    content: "";
    display: block;
    width: 100%;
    padding-top: 100%;
  }
}


// 字体图标
.icon {
  /* 通过设置 font-size 来改变图标大小 */
  width: 1em; height: 1em;
  /* 图标和文字相邻时，垂直对齐 */
  vertical-align: -0.15em;
  /* 通过设置 color 来改变 SVG 的颜色/fill */
  fill: currentColor;
  /* path 和 stroke 溢出 viewBox 部分在 IE 下会显示
     normalize.css 中也包含这行 */
  overflow: hidden;
}
